<template>
  <view class="page_content">
    <AtForm
      onSubmit={this.onSubmit.bind(this)}
      onReset={this.onReset.bind(this)}
    >
      <AtInput 
        name='value' 
        title='门店名称' 
        type='text' 
        placeholder='请输入门店名称' 
        value=""
        onChange={this.handleChange.bind(this)} 
      />
      <view class="line">
        <view class="title">门店图片</view>
        <AtImagePicker
          :files="filesImg"
          :onChange="onChange"
          :showAddBtn="filesImg.length == 0"
        />
      </view>
      <picker mode='multiSelector' :range="sexOption" >
        <AtList>
          <AtListItem
            title='地区选择器'
            :extraText="selectorChecked"
          />
        </AtList>
      </picker>
      <AtButton formType='submit' type='primary'>提交</AtButton>
      <AtButton formType='reset'>重置</AtButton>
    </AtForm>
    
  </view>
</template>

<script>
import Taro from '@tarojs/taro'
import './add.scss'
import UserAPI from '../../../api/user'
export default {
  name: 'list',
  data(){
    return{
      filesImg: [],
      areaData: [['4334'], ['43aa34']],
      selectorChecked: "333333",
      levelOption: [
        {id: "",name: ""}
      ],
      userLeval: 0, // 用户会员卡等级
      userSex: "33", // 用户性别
      cardList: [], // 用户充值卡项
      sexOption: [['未知','男','女'],['123'],['rrr']], // 性别选项
    }
  },
  mounted(){
    
  },
  methods: {
    onChange(){

    }
  }
  
}
</script>
